

package com.BeeFramework.view;

import android.app.Dialog;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;

import com.sgr.dykdriver.R;

public class EditDialog {

	public Dialog mDialog;
	public EditText dialog_et_message;
	public TextView positive;
	public TextView negative;

	public EditDialog(Context context, String text) {

		LayoutInflater inflater = LayoutInflater.from(context);
		View view = inflater.inflate(R.layout.dialog_layout2, null);

		mDialog = new Dialog(context, R.style.dialog);
		mDialog.setContentView(view);
		mDialog.setCanceledOnTouchOutside(true);
		
		dialog_et_message = (EditText) view.findViewById(R.id.et_et_coupon_code);
//		dialog_et_message.setText(text);
		dialog_et_message.setHint(text);
		
		positive = (TextView) view.findViewById(R.id.yes);
		negative = (TextView) view.findViewById(R.id.no);
		
	}
	
	public void show() {
		mDialog.show();
		
	}
	
	public void dismiss() {
		mDialog.dismiss();
	}
	public void setCancelable(Boolean bool) {
		mDialog.setCancelable(bool);
	}

}
